package com.ruoyi.develop.orderCommissionRecord.domain;

import java.math.BigDecimal;

import com.ruoyi.develop.projectBaseInfo.domain.ProjectBaseInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单提成记录对象 order_commission_record
 *
 * @author lmm
 * @date 2024-11-14
 */
public class OrderCommissionRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 业务员
     */
    @Excel(name = "业务员")
    private String salesmanId;

    /**
     * 业务员姓名
     */
    @Excel(name = "业务员姓名")
    private String salesmanName;

    /**
     * 回款天数
     */
    @Excel(name = "回款天数")
    private int returnDays;

    /**
     * 订单金额
     */
    @Excel(name = "订单金额")
    private BigDecimal orderMoney;

    /**
     * 所属地区
     */
    @Excel(name = "所属地区")
    private String ruleId;

    /**
     * 提成百分比
     */
    @Excel(name = "提成百分比")
    private BigDecimal percent;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private BigDecimal money;


    /**
     * 删除标志
     */
    private String delFlag;


    /**
     * 订单
     */
    private ProjectBaseInfo order;

    public ProjectBaseInfo getOrder() {
        return order;
    }

    public void setOrder(ProjectBaseInfo order) {
        this.order = order;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setSalesmanId(String salesmanId) {
        this.salesmanId = salesmanId;
    }

    public String getSalesmanId() {
        return salesmanId;
    }

    public void setSalesmanName(String salesmanName) {
        this.salesmanName = salesmanName;
    }

    public String getSalesmanName() {
        return salesmanName;
    }

    public void setReturnDays(int returnDays) {
        this.returnDays = returnDays;
    }

    public int getReturnDays() {
        return returnDays;
    }

    public void setOrderMoney(BigDecimal orderMoney) {
        this.orderMoney = orderMoney;
    }

    public BigDecimal getOrderMoney() {
        return orderMoney;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setPercent(BigDecimal percent) {
        this.percent = percent;
    }

    public BigDecimal getPercent() {
        return percent;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("salesmanId", getSalesmanId())
                .append("salesmanName", getSalesmanName())
                .append("returnDays", getReturnDays())
                .append("orderMoney", getOrderMoney())
                .append("ruleId", getRuleId())
                .append("percent", getPercent())
                .append("money", getMoney())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
